import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom'
import Home from './pages/home'
import CityList from './pages/citylist'
import Map from './pages/map'

function App() {
  return (
    <Router>
      <div className="App">
        <Route exact path="/" render={()=> <Redirect to="/home" />} />
        <Route path="/home" component={Home} />
        <Route path="/cityList" component={CityList} />
        <Route path="/map" component={Map} />
      </div>
    </Router>
  );
}

export default App;
